﻿<%@ Page Language="C#"  MasterPageFile="~/Manage/MainPage.master" AutoEventWireup="true" CodeFile="DeliveryManage.aspx.cs" Inherits="Manage_DeliveryManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/DeliveryManage.js"></script>
<script type="text/javascript">
   ModelOfDelivery = <%=new Deliveries().ToJsonString() %>;
</script>


<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td colspan="10" align="left" class="HeadTitle">&gt;&gt;快递管理</td>
  </tr>
  <tr class="TableHeadRow">
    <td width="60" align="center">序号</td>
    <td align="left">快递名称</td>
    <td align="center">默认首重</td>
    <td align="center">首重费用</td>
    <td align="center">默认续重</td>
    <td align="center">续重费用</td>
    <td width="60" align="center">排序值</td>
    <td width="60" align="center">状态</td>
    <td width="120" align="center">创建日期</td>
    <td width="150" align="center">管理 [<a onclick="Add();" href="javascript:void(0);" class="red">+添加快递</a>]</td>
  </tr>

  <%
      if (listOfData != null)
      {
          for (int i = 0; i < listOfData.Count; ++i)
          {
              Deliveries d = listOfData[i];
   %>
  <tr  onmouseover="this.style.backgroundColor='#F2F2F2';" onmouseout="this.style.backgroundColor='#FFFFFF';">
    <td align="center"><%=i+1 %>.</td>
    <td align="left"><a href="javascript:void(0);" onclick="Edit(<%=d.DeliveryID%>);" ><%=d.DeliveryName%> (ID=<%=d.DeliveryID%>)</a></td>
    <td align="center"><%=d.FirstWeight %>g</td>
    <td align="center"><%=d.FirstWeightFee %></td>
    <td align="center"><%=d.PerWeight %>g</td>
    <td align="center"><%=d.PerWeightFee %></td>
    <td align="center"><%=d.OrderValue %> </td>
    <td align="center"> <%=d.Status %> </td>
    <td align="center"><%=d.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") %></td>
    <td align="center">[ <a href="javascript:void(0);" onclick="Edit(<%=d.DeliveryID%>);" >编辑</a> ][ <a href="javascript:void(0);" onclick="Delete(<%=d.DeliveryID%>);" class="red">删除</a> ] </td>
  </tr>
   <%  }
      }
      else
      { %>
  <tr>
    <td colspan="10" align="center">[ <span class="red bold">系统未找到任何快递信息!</span> ]</td>
    </tr>
    <% } %>
</table>

</asp:Content>
